libblktap: Remove trailing null byte in xs_printf
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 2 Oct 2008 11:56:55 +0000 (12:56 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 2 Oct 2008 11:56:55 +0000 (12:56 +0100)
commit4b52a3871137abc1b3f84f4dd3dc8e5fcbb9f602
treebb588f58b4b0a18a78562fbecc2d0671a11e680d
parent4a93b11b6753ae0e0afb93f7307b32543447253b
libblktap: Remove trailing null byte in xs_printf

xs_printf writes the terminating null byte of the passed string to
Xenstore. When reading, the null byte is returned in the following
form which confuses tools:

sector-size = "512\000"

This patch removes the null byte from the data to write.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
tools/blktap/lib/xs_api.c